package com.wlient.basic.designPattern.StateMode.pojo;

import com.wlient.basic.designPattern.StateMode.HotelState;

//定义一个酒店Context类
public class HotelContext{
    private HotelState hotelState;

    public HotelState getHotelState() {
        return hotelState;
    }

    public void setHotelState(HotelState hotelState) {
        this.hotelState = hotelState;
    }

    public void doAction(){
        hotelState.operate();
    }
}